﻿using ConfExpert.Forms.Base;
using DevTeam;
using System;
using System.Data;

namespace ConfExpert.Forms.Depo.Kargo
{
    public partial class KargoEslesme : XForm
    {
        public KargoEslesme()
        {
            InitializeComponent();
        }

        private void KargoEslesme_Load(object sender, EventArgs e)
        {
            

            DataSet dsKargo = ExecuteDataSet("GetKargoEslesmeyen", WhoAmI);
            //DataTable dtMatch = dsKargo.Tables[0]; // Kargo altındaki FaturaGir.cs içine alındı
            DataTable dtNoMatchFromUser = dsKargo.Tables[0];
            DataTable dtNoMatchFromExcel = dsKargo.Tables[1];

            //gvMatch.Init(dtMatch);
            gvNoMatchUser.Init(dtNoMatchFromUser);
            gvNoMatchXL.Init(dtNoMatchFromExcel);

            gvNoMatchUser.SetCaptions("UserId:Gonderen");
            gvNoMatchUser.AddSummary();
            gvNoMatchXL.AddSummary();

            gvNoMatchUser.MakeReadOnly();
            gvNoMatchXL.MakeReadOnly();

            gvNoMatchUser.BestFitColumns();
            gvNoMatchXL.BestFitColumns();
        }
    }
}